import "package:ct_pa_majordomo/pages/device/gateway/add_gateway/index.dart";
import "package:ct_pa_majordomo/pages/device/gateway/add_gateway/result_page.dart";
import "package:ct_pa_majordomo/pages/device/gateway/add_gateway/select_wifi.dart";
import "package:ct_pa_majordomo/pages/device/gateway/add_gateway/wifi_page.dart";
import "package:ct_pa_majordomo/pages/device/gateway/bound_locks/index.dart";
import "package:ct_pa_majordomo/pages/device/gateway/detail/index.dart";
import "package:ct_pa_majordomo/pages/device/gateway/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";

class GatewayRoutes {
  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      ///网关
      Keys.DEVICE_GATEWAY: (context, {arguments}) => const Gateway(),
      ///网关 详情
      Keys.DEVICE_GATEWAY_DETAIL: (context, {arguments}) => Detail(gateway: arguments),
      ///网关 添加网关
      Keys.DEVICE_GATEWAY_ADD: (context, {arguments}) => const AddGateway(),
      ///网关 绑定的锁
      Keys.DEVICE_GATEWAY_BOUND_LOCKS: (context, {arguments}) => BoundLocks(plugId: arguments,),
      ///网关 填写网关相关wifi配置
      Keys.DEVICE_GATEWAY_WIFI_PAGE: (context, {arguments}) => WifiPage(mac: arguments["mac"], gateway: arguments["gateway"]),
      ///网关 选择wifi
      Keys.DEVICE_GATEWAY_SELECT_WIFI: (context, {arguments}) => const SelectWifi(),
      ///网关 添加结果页
      Keys.DEVICE_GATEWAY_RESULT_PAGE: (context, {arguments}) => ResultPage(result: arguments),
    };
  }
}